import './assets/main.css'
import { createApp } from 'vue'
// 全局注册图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 导入 pinia 仓库
import store from './store'
// 引入重置样式表
import 'normalize.css'
// 导入pinia持久化 插件
import { createPersistedState } from 'pinia-persistedstate-plugin'
import App from './App.vue'
import router from './router'

// windicss

const app = createApp(App)
// const store = createPinia()
app.use(router)
app.use(store)
store.use(createPersistedState())
// 图标配置
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
import 'virtual:windi.css'
app.mount('#app')
